import request from '@/utils/request'
/* eslint-disable */
let basePath2 = native.getConfig().adapterServer
/* eslint-enable */

/**
 * 质控预览
 */
export function previewData (data) {
    return request({
        url: '/MRDM/Api/MRReport/DataPreview',
        method: 'post',
        data
    })
}

/**
 * 质控预览提交
 */
export function sumbitPreviewData (data) {
    return request({
        url: '/MRDM/Api/MRReport/SavePreviewNew',
        method: 'post',
        data
    })
}

/**
 * 质控预览提交无id
 */
export function addPreviewData (data) {
    return request({
        url: `${basePath2}//api/MedicalRecord/BingAnKeSave`,
        method: 'post',
        data,
        headers: {'token': localStorage.getItem('authToken')}
    })
}
